﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;
using PQT.API;
using PQT.Common;

namespace cbmobile.BLC
{
    public class ConnectSQL
    {
        public DataSet connect(string sql)
        {
            string connectionString = null;
            SqlConnection connection;
            SqlCommand command;
            SqlDataAdapter adapter = new SqlDataAdapter();
            DataSet ds = new DataSet();

            string firstSql = null;

            connectionString = Config.GetConfigValue("connectionString");
            firstSql = sql;
            connection = new SqlConnection(connectionString);
            command = new SqlCommand(firstSql,connection);
        }
    }
}